{extend name='common/_container'}
{block name="content"}
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-12">
					<!-- form start -->
					<!--用户账号-->
					<div class="form-group">
						<label class="col-sm-2 control-label">用户账号：</label>
						<div class="col-sm-9">

							<input hidden="text" value="0" name="u_id" id="u_id"  />
							<input   value="0" readonly class="form-control" id="u_id_name"
							/>
							<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.chooseTop()">
								选择
							</button>
						</div>

					</div>
					<!--称呼-->
					<div class="form-group">
						<label class="col-sm-2 control-label">称呼：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="simple_name" value="" name="simple_name" class="form-control" placeholder="例如:张先生">
						</div>
					</div>
					<!--年龄-->
					<div class="form-group">
						<label class="col-sm-2 control-label">年龄(虚岁)：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="age" value="" name="age" class="form-control" placeholder="请输入年龄">
						</div>
					</div>
					<!--婚姻状况-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">婚姻状况：</label>
						<div class="col-sm-9">
							<input name="marital_status" value="1" type="radio"  title="未婚" checked>
							<input name="marital_status" value="2" type="radio"  title="离异">
							<input name="marital_status" value="3" type="radio"   title="丧偶">
							<input name="marital_status" value="4" type="radio"    title="短婚">
						</div>
					</div>
					<!--所在地-->
					<div class="form-group">
						<label class="col-sm-2 control-label">省份：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="province"   name="province" class="form-control" placeholder="请输入所在地省份">
						</div>
					</div>
					<!--所在地-->
					<div class="form-group">
						<label class="col-sm-2 control-label">城市：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="city"   name="city" class="form-control" placeholder="请输入所在地城市">
						</div>
					</div>
					<!--所在地-->
					<div class="form-group">
						<label class="col-sm-2 control-label">区：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="county"    name="county" class="form-control" placeholder="请输入所在地区">
						</div>
					</div>
			<!-- 所在地详细地址-->
					<div class="form-group">
						<label class="col-sm-2 control-label">详细地址：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="address"  name="address" class="form-control" placeholder="请输入详细地址">
						</div>
					</div>
					<!--属相-->
					<div class="form-group">
						<label class="col-sm-2 control-label">属相：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="animal"   name="animal" class="form-control" placeholder="请输入属相">
						</div>
					</div>
					<!--性别-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">性别：</label>
						<div class="col-sm-9">
							<input  name="gender" value="1" type="radio"  checked   title="男">
							<input  name="gender" value="2" type="radio"  title="女">
						</div>
					</div>
					<!--身高-->
					<div class="form-group">
						<label class="col-sm-2 control-label">身高（单位:cm）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="height"   name="height" class="form-control" placeholder="请输入身高">
						</div>
					</div>
					<!--体重-->
					<div class="form-group">
						<label class="col-sm-2 control-label">体重(斤)：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="weight"   name="weight" class="form-control" placeholder="请输入体重">
						</div>
					</div>
					<!--学历-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">学历：</label>
						<div class="col-sm-9">
							<select id="education" name="education"  >
								<option value="0"  selected >保密</option>
								<option value="1"   >小学</option>
								<option value="2"  >初中</option>
								<option value="10"  >中专/高职</option>
								<option value="3"  >高中</option>
								<option value="4"  >大专</option>
								<option value="5"  >专升本</option>
								<option value="6"  >本科</option>
								<option value="7"  >硕士</option>
								<option value="8"  >博士</option>
								<option value="9"  >海归留学</option>
							</select>

						</div>

					</div>
					<!--职业-->
					<div class="form-group">
						<label class="col-sm-2 control-label">职业：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="occupation"   name="occupation" class="form-control" placeholder="请输入职业">
						</div>
					</div>
					<!--品貌-->
					<div class="form-group">
						<label class="col-sm-2 control-label">品貌：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="appearance"  name="appearance" class="form-control" placeholder="请输入品貌">
						</div>
					</div>
					<!--信仰-->
					<div class="form-group">
						<label class="col-sm-2 control-label">信仰：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="belief"   name="belief" class="form-control" placeholder="请输入信仰">
						</div>
					</div>
					<!--年薪-->
					<div class="form-group ">
						<label class="col-sm-2 control-label">年薪（万）：</label>
						<div class="col-sm-9">
							<input type="number" autocomplete="off" id="income"   name="income" class="form-control" placeholder="请输入年薪">
						</div>
					</div>
					<!--购房情况-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">购房情况：</label>
						<div class="col-sm-9">

							<input name="purchase_status" value="1" type="radio"  checked  title="无房">
							<input name="purchase_status" value="2" type="radio"   title="一套">
							<input name="purchase_status" value="3" type="radio"   title="两套">
							<input name="purchase_status" value="4" type="radio"   title="三套及以上">
							<input name="purchase_status" value="5" type="radio"  title="婚后买房">
							<input name="purchase_status" value="6" type="radio"    title="拆迁分房">
							<input name="purchase_status" value="7" type="radio"   title="别墅/排屋">
						</div>
					</div>
					<!--有无自建房-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">自建房：</label>
						<div class="col-sm-9">

							<input name="self_built" value="1" type="radio"  checked  title="有">
							<input name="self_built" value="2" type="radio"   title="没有">
							<input name="self_built" value="3" type="radio"  title="自建别墅">
						</div>
					</div>
					<!--购车情况-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">购车情况：</label>
						<div class="col-sm-9">

							<input name="vehicle_status" value="2" type="radio"  checked title="一辆车">
							<input name="vehicle_status" value="3" type="radio"   title="多辆车">
							<input name="vehicle_status" value="1" type="radio"  title="未购车">
						</div>
					</div>
					<!--父母状况-->
					<div class="form-group">
						<label class="col-sm-2 control-label">父母状况：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="parental_status"  name="parental_status" class="form-control" placeholder="请输入父母状况">
						</div>
					</div>
					<!--兄弟姐妹-->
					<div class="form-group">
						<label class="col-sm-2 control-label">兄弟姐妹：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="sibling"   name="animal" class="form-control" placeholder="请输入兄弟姐妹">
						</div>
					</div>
					<!--属相(冲)(宜) -->
					<div class="form-group">
						<label class="col-sm-2 control-label">属相(冲)(宜) ：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="zodiac_clash"   name="zodiac_clash" class="form-control" placeholder="请输入属相冲 ">
						</div>
					</div>
					<!--有无子女-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">有无子女：</label>
						<div class="col-sm-9">

							<input name="have_children" value="1" type="radio"   checked  title="有">
							<input name="have_children" value="2" type="radio"  title="没有">
						</div>
					</div>
					<!--佳人其他情况描述-->
					<div class="form-group">
						<label class="col-sm-2 control-label">佳人其他情况描述：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="other_describe"   name="notes" class="form-control" placeholder="佳人其他情况描述">
						</div>
					</div>
					<!--红娘备注-->
					<div class="form-group">
						<label class="col-sm-2 control-label">红娘备注：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="notes"   name="notes" class="form-control" placeholder="红娘备注">
						</div>
					</div>
					<!--择偶基本要求-->
					<!--择偶籍贯-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶籍贯：</label>
						<div class="col-sm-9">
							<input type="radio" name="o_jg" value="不限"  checked  >不限
							<input type="radio" name="o_jg" value="省内" >省内
							<input type="radio" name="o_jg" value="全杭州"  >全杭州
							<input type="radio" name="o_jg" value="杭州主城区"   >杭州主城区
							<input type="radio" name="o_jg" value="滨江区"  >滨江区
							<input type="radio" name="o_jg" value="萧山区"   >萧山区
							<input type="radio" name="o_jg" value="上城区"   >上城区
							<input type="radio" name="o_jg" value="西湖区"   >西湖区
							<input type="radio" name="o_jg" value="拱墅区"  >拱墅区
							<input type="radio" name="o_jg" value="临平区"   >临平区
							<input type="radio" name="o_jg" value="余杭区"   >余杭区
							<input type="radio" name="o_jg" value="钱塘区"   >钱塘区
							<input type="radio" name="o_jg" value="富阳区"  >富阳区
							<input type="radio" name="o_jg" value="临安区"  >临安区
							<input type="radio" name="o_jg" value="桐庐县"   >桐庐县
							<input type="radio" name="o_jg" value="建德市"   >建德市
							<input type="radio" name="o_jg" value="淳安县"  >淳安县

						</div>
					</div>

					<!--择偶最小年龄-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最小年龄：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_min_age"  name="o_min_age" class="form-control" placeholder="请输入择偶最小年龄">
						</div>
					</div>
					<!--择偶最大年龄-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最大年龄：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_max_age"  name="o_max_age" class="form-control" placeholder="请输入择偶最大年龄">
						</div>
					</div>
					<!--择偶最小身高-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最小身高（cm）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_min_height"  name="o_min_height" class="form-control" placeholder="请输入择偶最小身高">
						</div>
					</div>
					<!--择偶最大身高-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最大身高（cm）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_max_height"   name="o_max_height" class="form-control" placeholder="请输入择偶最大身高">
						</div>
					</div>
					<!--择偶最小体重-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最小体重(斤)：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_min_weight"   name="o_min_weight" class="form-control" placeholder="请输入择偶最小体重">
						</div>
					</div>
					<!--择偶最大体重-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶最大体重(斤)：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_max_weight"   name="o_max_weight" class="form-control" placeholder="请输入择偶最大体重">
						</div>
					</div>
					<!--择偶学历-->
					<div class="form-group  ">
						<label class="col-sm-2 control-label">择偶学历：</label>
						<div class="col-sm-9">
							<input type="checkbox" name="o_education" value="1"  checked   >小学
							<input type="checkbox" name="o_education" value="2"   >初中
							<input type="checkbox" name="o_education" value="10"  >中专/高职
							<input type="checkbox" name="o_education" value="3"   >高中
							<input type="checkbox" name="o_education" value="4"   >大专
							<input type="checkbox" name="o_education" value="5"   >专升本
							<input type="checkbox" name="o_education" value="6"  >本科
							<input type="checkbox" name="o_education" value="7"  >硕士
							<input type="checkbox" name="o_education" value="8"  >博士
							<input type="checkbox" name="o_education" value="9"  >海归留学
							<input type="checkbox" name="o_education" value="0"  >不限
						</div>

					</div>
					<!--择偶婚况-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶婚姻情况：</label>
						<div class="col-sm-9">

							<input name="o_marital_status" value="1" type="radio"   title="未婚">
							<input name="o_marital_status" value="2" type="radio"   title="离异">
							<input name="o_marital_status" value="3" type="radio"   title="丧偶">
							<input name="o_marital_status" value="4" type="radio"   title="短婚">
							<input name="o_marital_status" value="0" type="radio"   title="不限">


						</div>

					</div>
					<!--择偶有无小孩-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶有无小孩：</label>
						<div class="col-sm-9">
							<input  name="o_child" value="1" type="radio"  checked  title="有">
							<input  name="o_child" value="2" type="radio"   title="无">
							<input  name="o_child" value="0" type="radio"   title="不限">
						</div>
					</div>
					<!--择偶购房情况-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶购房情况：</label>
						<div class="col-sm-9">
							<input name="o_purchase_status" value="1" type="radio"  checked  title="无房">
							<input name="o_purchase_status" value="2" type="radio"   title="有一套房">
							<input name="o_purchase_status" value="3" type="radio"   title="有二套房">
							<input name="o_purchase_status" value="4" type="radio"   title="三套以上">
							<input name="o_purchase_status" value="5" type="radio"   title="婚后买房">
							<input name="o_purchase_status" value="0" type="radio"   title="不限">
						</div>
					</div>
					<!--择偶其它要求-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶要求描述：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_other"  name="o_other" class="form-control" placeholder="请输入择偶要求描述">
						</div>
					</div>
					<!--择偶所在地-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶所在地：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_city"   name="o_city" class="form-control" placeholder="请输入择偶所在地">
						</div>
					</div>
					<!--&lt;!&ndash;择偶体重&ndash;&gt;
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶体重：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_weight" value="{$info.o_weight}" name="o_weight" class="form-control" placeholder="请输入择偶体重">
						</div>
					</div>-->
					<!--择偶年收入-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶年收入：</label>
						<div class="col-sm-9">
							<input name="o_income" value="1" type="radio"  checked title="10万以下">
							<input name="o_income" value="2" type="radio"   title="10-15万">
							<input name="o_income" value="3" type="radio"  title="16-20万">
							<input name="o_income" value="4" type="radio"    title="20万-50万">
							<input name="o_income" value="5" type="radio"   title="50万-100万">
							<input name="o_income" value="6" type="radio"   title="100万以上">
							<input name="o_income" value="0" type="radio"    title="不限">
						</div>
					</div>
					<!--择偶民族-->
					<div class="form-group">
						<label class="col-sm-2 control-label">择偶民族：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_nation"   name="o_nation" class="form-control" placeholder="请输入择偶民族">
						</div>
					</div>
					<!--择偶购车情况-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶购车情况：</label>
						<div class="col-sm-9">
                            <input name="o_vehicle_status" value="0" type="radio" checked title="不限">
                            <input name="o_vehicle_status" value="1" type="radio"  title="未购车">
                            <input name="o_vehicle_status" value="2" type="radio"  title="一辆车">
                            <input name="o_vehicle_status" value="3" type="radio"  title="多辆车">
						</div>
					</div>
					<!--择偶是否吸烟-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶是否吸烟：</label>
						<div class="col-sm-9">
							<input name="o_is_smoking" value="1" type="radio"  checked title="是">
							<input name="o_is_smoking" value="2" type="radio"  title="否">
							<input name="o_is_smoking" value="0" type="radio"   title="不限">
						</div>
					</div>
					<!--择偶是否喝酒-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">择偶是否喝酒：</label>
						<div class="col-sm-9">

							<input  name="o_is_drink" value="1" type="radio"  checked title="是">
							<input  name="o_is_drink" value="2" type="radio"  title="否">
							<input name="o_is_drink" value="0" type="radio"   title="不限">
						</div>
					</div>
					<!--头像-->
					<div class="form-group">
						<label class="col-sm-2 control-label">头像：</label>
						<div class="col-sm-6">
							<input type="text" autocomplete="off" id="head_portrait"   {if condition="config('my.img_show_status') eq true"}onmousemove="showBigPic(this.value)" onmouseout="closeimg()"{/if} name="image" class="form-control" placeholder="请输入图片">
							<span class="help-block m-b-none image_process"></span>
						</div>
						<div class="col-sm-2" style="position:relative; right:30px;">
							<span id="image_upload"></span>
						</div>
					</div>
					<!--真实姓名-->
					<div class="真实姓名">
						<label class="col-sm-2 control-label">真实姓名：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="real_name"   name="real_name" class="form-control" placeholder="请输入真实姓名">
						</div>
					</div>

					<!--是否党员-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否党员</label>
						<div class="col-sm-9">
							<select id="is_party_member" name="is_party_member">
								<option value="2"  selected >否</option>
								<option value="1"  >是</option>
							</select>
						</div>
					</div>
					<!--联系人-->
					<div class="form-group">
						<label class="col-sm-2 control-label">联系人：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="contacts"   name="contacts" class="form-control" placeholder="请输入联系人">
						</div>
					</div>
					<!--联系号码-->
					<div class="form-group">
						<label class="col-sm-2 control-label">联系号码：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="contacts"   name="contacts" class="form-control" placeholder="请输入联系号码">
						</div>
					</div>
					<!--民族-->
					<div class="form-group">
						<label class="col-sm-2 control-label">民族：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="nation"   name="nation" class="form-control" placeholder="请输入民族">
						</div>
					</div>
					<!--家庭情况-->
					<!--<div class="form-group">
						<label class="col-sm-2 control-label">家庭情况：</label>
						<div class="col-sm-9">
							<textarea id="family_status" name="family_status"  class="form-control" placeholder=""> </textarea>
						</div>
					</div>-->

					<!--修改图片 视频-->
					<div class="form-group">
						<label class="col-sm-2 control-label">生活照：</label>
						<div class="col-sm-6">
							<div class="images pic_list">
								<li id="images_upload"></li>
							</div>
							<div style="clear:both"></div>
							<span class="help-block m-b-none images_process"></span>
						</div>
					</div>
					<!--照片权限-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否公开</label>
						<div class="col-sm-9">
							<select id="photo_auth" name="photo_auth">
								<option value="1"  selected >是</option>
								<option value="2"  >否</option>
							</select>
						</div>
					</div>

					<!--视频-->
					<div class="form-group">
						<label class="col-sm-2 control-label"> 视频：</label>
						<div class="col-sm-6">
							<li id="videos_upload"></li>
							<div class="videos pic_list">
							</div>
							<div style="clear:both"></div>
							<span class="help-block m-b-none videos_process"></span>
						</div>
					</div>

                    <!--视频权限-->
                    <div class="form-group layui-form">
                        <label class="col-sm-2 control-label">是否公开</label>
                        <div class="col-sm-9">
                            <select id="video_auth" name="video_auth">
                                <option value="1" selected >是</option>
                                <option value="2" >否</option>
                            </select>
                        </div>
                    </div>

					<!--是否抽烟-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否抽烟：</label>
						<div class="col-sm-9">
							<input name="is_smoking" value="1" type="radio" checked  title="是">
							<input name="is_smoking" value="2" type="radio"   title="否">
						</div>
					</div>
					<!--是否喝酒-->
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否喝酒：</label>
						<div class="col-sm-9">
							<input name="is_drink" value="1" type="radio"  checked title="是">
							<input name="is_drink" value="2" type="radio"  title="否">
						</div>
					</div>
					<!--<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否缴纳保证金：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['is_bond'])){ $info['is_bond'] = 1; }; ?>
							<input name="is_bond" value="1" type="radio" {if condition="$info.is_bond eq '1'"}checked{/if} title="是">
							<input name="is_bond" value="0" type="radio" {if condition="$info.is_bond eq '0'"}checked{/if} title="否">
						</div>
					</div>-->
					<!--爱情宣言-->
					<div class="form-group">
						<label class="col-sm-2 control-label">爱情宣言：</label>
						<div class="col-sm-9">
							<textarea id="lova_declaration" name="lova_declaration"  class="form-control" placeholder="请输入爱情宣言"> </textarea>
						</div>
					</div>


					<div class="form-group">
						<label class="col-sm-2 control-label">我的理想型：</label>
						<div class="col-sm-9">
							<textarea  id="o_remarks" name="o_remarks"  class="form-control" placeholder="请输入我的理想型"> </textarea>
						</div>
					</div>

		<!--			<div class="form-group">
						<label class="col-sm-2 control-label">所属红娘：</label>
						<div class="col-sm-9">
							<input disabled type="text" autocomplete="off" id=""  name="" class="form-control" placeholder="">
						</div>
					</div>-->

					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">审核状态：</label>
						<div class="col-sm-9">
							<input name="status" value="0" type="radio"  checked  title="待审核">
							<input name="status" value="1" type="radio"  title="通过">
							<input name="status" value="2" type="radio"   title="拒绝">
						</div>
					</div>
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">是否置顶：</label>
						<div class="col-sm-9">
							<input name="is_top" value="0" type="radio"checked  title="不置顶">
							<input name="is_top" value="1" type="radio"   title="置顶">
						</div>
					</div>



					<div class="form-group">
						<label class="col-sm-2 control-label">工作单位 ：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="work"  name="zodiac_clash" class="form-control" placeholder="请输入工作单位 ">
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">承诺：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="commitment"   name="commitment" class="form-control" placeholder="请输入承诺">
						</div>
					</div>
<!--					<div class="form-group">-->
<!--						<label class="col-sm-2 control-label">联系人：</label>-->
<!--						<div class="col-sm-9">-->
<!--							<input type="text" autocomplete="off" id="contacts"  name="contacts" class="form-control" placeholder="请输入联系人（电话）">-->
<!--						</div>-->
<!--					</div>-->


					<div class="form-group">
						<label class="col-sm-2 control-label">MBTI：</label>
						<div class="col-sm-9">
							<select id="mbti" name="mbti">
								<option value="ISTJ"  selected >ISTJ</option>
								<option value="ISFJ"  >ISFJ</option>
								<option value="INFJ"  >INFJ</option>
								<option value="INTJ"  >INTJ</option>
								<option value="ISTP"  >ISTP</option>
								<option value="ISFP"  >ISFP</option>
								<option value="INFP"  >INFP</option>
								<option value="INTP"  >INTP</option>
								<option value="ESTP"  >ESTP</option>
								<option value="ENFP"  >ENFP</option>
								<option value="ISFJ"  >ISFJ</option>
								<option value="ENTP"  >ENTP</option>
								<option value="ESTJ"  >ESTJ</option>
								<option value="ESFJ"  >ESFJ</option>
								<option value="ENFJ"  >ENFJ</option>
								<option value="ENTJ"  >ENTJ</option>
							</select>

						</div>
					</div>
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">星座：</label>
						<div class="col-sm-9">
							<select id="constellation" name="constellation">
								<option value="">请选择</option>
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">标签：</label>
						<div class="col-sm-9">
							<div id="div_tags"></div>
						</div>
					</div>



				</div>

				<!-- form end -->
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="row btn-group-m-t">
			<div class="col-sm-9 col-sm-offset-1">
				<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.add() " id="ensure">
					<i class="fa fa-check"></i>&nbsp;确认提交
				</button>
				<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
					<i class="fa fa-eraser"></i>&nbsp;取消
				</button>
			</div>
		</div>
	</div>
</div>
</div>
<script src="__PUBLIC__/static/js/upload.js?v=4" charset="utf-8"></script>
<script src="__PUBLIC__/static/js/plugins/layui/layui.js" charset="utf-8"></script>

<!--	layui的select扩展插件		-->
<script type="text/javascript" src="__PUBLIC__/static/js/plugins/xm-select/xm-select.js"></script>
<script>
	layui.config({
		base: '../../static/js/plugins/layui/mods/',//相对路径
		version: '1.0'
	});

	//2.24.5.11新增两个字段的配置，数据固定的话就直接在js里面写死就行
	CONFIG_CONSTELLATION = [
		{
			"name": "白羊座","value": '白羊座'
		},
		{
			"name": "金牛座","value": '金牛座'
		},
		{
			"name": "双子座","value": '双子座'
		},
		{
			"name": "巨蟹座","value": '巨蟹座'
		},
		{
			"name": "狮子座","value": '狮子座'
		},
		{
			"name": "处女座","value": '处女座'
		},
		{
			"name": "天秤座","value": '天秤座'
		},
		{
			"name": "天蝎座","value": '天蝎座'
		},
		{
			"name": "射手座","value": '射手座'
		},
		{
			"name": "摩羯座","value": '摩羯座'
		},
		{
			"name": "水瓶座","value": '水瓶座'
		},
		{
			"name": "双鱼座","value": '双鱼座'
		}
	];
	CONFIG_TAGS = [
		{
			"name": "白领","value": '白领'
		},
		{
			"name": "公职人员","value": '公职人员'
		},
		{
			"name": "经商","value": '经商'
		},
		{
			"name": "高净值","value": '高净值'
		},
		{
			"name": "上门","value": '上门'
		},
		{
			"name": "国企","value": '国企'
		},
		{
			"name": "离异","value": '离异'
		},
		{
			"name": "海归留学","value": '海归留学'
		}
	];
	//2024.5.11绑定多选标签
	var div_tags = xmSelect.render({
		el: '#div_tags',data: CONFIG_TAGS
	});
	var tags = "{$info.tags}";

	div_tags.setValue(tags.split(','));
	//2024.5.11 加载星座
	var html = "";
	var constellation = "{$info.constellation}";
	console.log(constellation)
	for (let i = 0; i <CONFIG_CONSTELLATION.length ; i++) {
		if(CONFIG_CONSTELLATION[i].value === constellation){
			html += "<option value=\""+CONFIG_CONSTELLATION[i].value+"\" selected>"+CONFIG_CONSTELLATION[i].name+"</option>";
		}else{
			html += "<option value=\""+CONFIG_CONSTELLATION[i].value+"\">"+CONFIG_CONSTELLATION[i].name+"</option>";
		}
	}
	$(html).appendTo("#constellation");



	layui.use(['form'],function(){

	});
	laydate.render({elem: '#createtime',type: 'datetime',trigger:'click'});


	uploader('image_upload','head_portrait','image',false,'','{:getUploadServerUrl()}');
	uploader('images_upload', 'images', 'image', true, '{$info.photos}', '{:getUploadServerUrl()}');
	uploader('videos_upload', 'videos', 'video', true, '{$info.videos}', '{:getUploadServerUrl()}');

	setUploadButton('images_upload');

	var CodeInfoDlg = {
		CodeInfoData: {},
		validateFields: {}
	}
	CodeInfoDlg.collectData = function () {
		this.set('authentication_id').set('head_portrait').set('real_name').set('date_birth').set('city').set('province').set('county').set('address')
				.set('height').set('weight').set('education').set('contact_type').set('contact').set('nation')
				.set('occupation').set('lova_declaration').set('o_city')
				.set('o_weight').set('o_nation').set('o_remarks').set('u_id')
				.set('wxapp_id').set('createtime').set('matchmaker_id').set('status').set('is_top')
				.set('animal').set('appearance').set('belief').set('parental_status')
				.set('sibling').set('zodiac_clash').set('commitment').set('contacts').set('income')
				.set('simple_name').set("is_party_member").set("photo_auth").set("height")
				.set("o_min_age").set("o_max_age").set("o_age").set("o_min_height").set("o_max_height").set("o_weight").set("o_min_weight").set("o_max_weight")
				//2024.5.11新增三个字段（还有一个在ajax.set里面）
				.set('mbti').set("constellation").set("age").set("self_built").set("other_describe").set("o_other")
		;
	};

	CodeInfoDlg.chooseTop = function () {
		var authentication_id=$("#authentication_id").val();
		var index = layer.open({
			type: 2,
			title: '请下拉选择绑定用户',
			area: ['800px', '100%'],
			fix: false,
			maxmin: true,
			content: Feng.ctxPath + '/ZhAuthentication/selectList?authentication_id='+authentication_id
		});
		if (!IsPC()) {
			layer.full(index)
		}
	}

	// 获取上级推荐人
	function GetTopValue(value) {
		$('#u_id').val(value.uid)
		$('#u_id_name').val(value.phone)
		console.log('获取用户id', value)
	}

	CodeInfoDlg.add = function () {
		this.clearData();
		this.collectData();
		if (!this.validate()) {
			return;
		}
		var gender = $("input[name = 'gender']:checked").val();
		var marital_status = $("input[name = 'marital_status']:checked").val();
		var have_children = $("input[name = 'have_children']:checked").val();
		var purchase_status = $("input[name = 'purchase_status']:checked").val();
		var vehicle_status = $("input[name = 'vehicle_status']:checked").val();
		var is_smoking = $("input[name = 'is_smoking']:checked").val();
		var o_child= $("input[name = 'o_child']:checked").val();
		var is_drink = $("input[name = 'is_drink']:checked").val();
		var o_marital_status = $("input[name = 'o_marital_status']:checked").val();
		var o_purchase_status = $("input[name = 'o_purchase_status']:checked").val();
		var o_income = $("input[name = 'o_income']:checked").val();
		var o_vehicle_status = $("input[name = 'o_vehicle_status']:checked").val();
		var o_is_smoking = $("input[name = 'o_is_smoking']:checked").val();
		var o_is_drink = $("input[name = 'o_is_drink']:checked").val();
		var status = $("input[name = 'status']:checked").val();
		var is_top = $("input[name = 'is_top']:checked").val();
		// var is_bond=$("input[name = 'is_bond']:checked").val();
		var obj=document.getElementsByName("o_education");
		var o_education=[];
		for(k in obj){
			if(obj[k].checked){
				o_education.push(obj[k].value);
			//	alert(obj[k].value);
			}
		}
		console.log(o_education);

		var images = [];
		$(".images li").each(function () {
			if ($(this).find('img').attr('src')) {
				images.push($(this).find('img').attr('src'));
			}
		});
		var videos = [];
		$(".videos li").each(function () {
			if ($(this).find('i')) {
				videos.push($(this).find('i').text())
			}
		});

		var ajax = new $ax(Feng.ctxPath + "/ZhAuthentication/add", function (data) {
			if ('00' === data.status) {
				Feng.success(data.msg,1000);
				window.parent.CodeGoods.table.refresh();
				CodeInfoDlg.close();
			} else {
				Feng.error(data.msg + "！",1000);
			}
		})
		ajax.set('gender',gender);
		ajax.set('o_child',o_child);
		ajax.set('o_education',o_education);
		ajax.set('marital_status',marital_status);
		ajax.set('have_children',have_children);
		ajax.set('purchase_status',purchase_status);
		ajax.set('vehicle_status',vehicle_status);
		ajax.set('is_smoking',is_smoking);
		ajax.set('is_drink',is_drink);
		ajax.set('o_marital_status',o_marital_status);
		ajax.set('o_purchase_status',o_purchase_status);
		ajax.set('o_income',o_income);
		ajax.set('o_vehicle_status',o_vehicle_status);
		ajax.set('o_is_smoking',o_is_smoking);
		ajax.set('o_is_drink',o_is_drink);
		//	ajax.set('is_bond',is_bond);
		ajax.set('photos', JSON.stringify(images));
		ajax.set('videos', JSON.stringify(videos));

		ajax.set(this.CodeInfoData);
		ajax.set('status',status);
		ajax.set('is_top',is_top);
		//2024.5.11新增字段
		ajax.set('tags',div_tags.getValue('valueStr'));

		ajax.start();
	};


</script>
<script src="__PUBLIC__/static/js/base.js" charset="utf-8"></script>
{/block}
